export const option = {
  title:{
    text:'2016-2020民政救助人次及总体走失情况',
    textStyle:{
      color:'#000'
    },
    x:"center",
  },
  tooltip: {
    trigger: "axis",
    axisPointer: {
      type: "cross",
      crossStyle: {
        color: "#999",
      },
    },
  },
  legend: {
    data: ["民政救助人次", "走失人口", "占比"],
    padding:30,
  },
  xAxis: [
    {
      type: "category",
      data: ["2016", "2017", "2018", "2019", "2020"],
    },
  ],
  yAxis: [
    {
      type: "value",
      min: 0,
      max: 450,
      interval: 50,
      // axisLabel: {
      //   formatter: "{value} ml",
      // },
    },
    {
      type: "value",
      name: "(单位：万人次)",
      min: 50,
      max: 100,
      interval: 5,
      axisLabel: {
        formatter: "{value} %",
      },
    },
  ],
  series: [
    {
      name: "民政救助人次",
      type: "bar",
      tooltip: {
        valueFormatter: function (value:any) {
          return (value as number) + "万";
        },
      },
      data: [
        333.82, 218.86, 157.24, 129.32, 83
      ],
    },
    {
      name: "走失人口",
      type: "bar",
      tooltip: {
        valueFormatter: function (value:any) {
          return (value as number) + "万";
        },
      },
      data: [
        393.52, 259.7, 198.82, 177.01, 99.98
      ],
    },
    {
      name: "占比",
      type: "line",
      yAxisIndex: 1,
      tooltip: {
        valueFormatter: function (value:any) {
          return (value as number) + "%";
        },
      },
      data: [84.83, 84.27, 79.07, 73.06, 83.02],
    },
  ],
};
